# Maintainer: Steve McMaster <code@mcmaster.io>
pkgname=snort-extra
pkgver=3.5.0.0
pkgrel=0
pkgdesc="External plugins for snort"
url="https://github.com/snort3/snort3_extra"
# snort
arch="all !ppc64le !riscv64 !loongarch64"
license="GPL-2.0-only"
makedepends="
	daq-dev
	cmake
	samurai
	snort-dev
	"
source="snort3_extra-$pkgver.tar.gz::https://github.com/snort3/snort3_extra/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/snort3_extra-$pkgver"
options="!check" # doesn't have any tests

build() {
	CXXFLAGS="$CXXFLAGS -flto=auto" \
	cmake -B build -G Ninja -Wno-dev \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
36cbdfd1f3dc3f4ea935c384359384579271b78ab5237b194660259bc0174a0b912e83d9455275e29e9dfd1fd767a6b6fb930dcc57cfa096502b5dd1dfc1ed20  snort3_extra-3.5.0.0.tar.gz
"
